package com.spark.lola.feign;

import com.spark.lola.entity.pur.OrderInfo;
import com.spark.lola.entity.sup.BankInfo;
import com.spark.lola.entity.sup.SupplierInfo;
import com.spark.lola.support.core.vo.SelectMap;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @Author: DengYeJun
 * @Date: 2020/4/22 14:45
 */
public interface SupFeignService {
    /**
     * 获取供货商信息
     * @param id
     * @return
     */
    SupplierInfo findSupplierById(Long id);

    OrderInfo findOrderByOrderNo(String orderNo);

    OrderInfo findOrderByOrderId(Long id);

    List<SupplierInfo> supliers();

    Map<String,BigDecimal> statistics(Long supplierId,Long salesmanId,Long destinationId, String start, String end);

    /**
     * 待付款
     */
    BigDecimal waitingPayment(Integer type, Long byId,List<String> salesmanIds,String start, String end);

    /**
     * 待付款
     * @param supplierId 供应商
     * @return
     */
    BigDecimal supplierWaitingPayment(Long supplierId);

    /**
     * 供应商数量
     * @return
     */
    Integer supplierCount(Long salesmanId);

    /**
     * 纸厂数量
     * @return
     */
    Integer salesmanCount();

    /**
     * 订单状态 统计
     * @param type
     * @param byId
     * @return
     */
    Map<Integer,Integer> orderCountByStatus(Integer type,Long byId,List<String> salesmanIds);

}
